<template>
	<view class="pd_50">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	import {
		cateDetail
	} from "@/common/api/index";
	export default {

		data() {
			//这里存放数据
			return {
				content: ""
			};
		},
		onLoad(options) {
			let item = JSON.parse(options.item)
			cateDetail({
				id: item.id
			}).then(res => {
				console.log(res);
				if (res.code === 1) {
					this.content = res.data.content
				} else {
					this.showMsg(res.msg)
					this.content = res.msg
				}
			})
		},
		//方法集合
		methods: {},
	};
</script>
<style lang='scss' scoped>
	.pd_50 {
		padding: 20rpx 50rpx;
		box-sizing: border-box;
	}
</style>